package com.example.boot1.dao;

import com.example.boot1.entity.IndexTest;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author Create By Liuqz
 * @date 2019/12/27 21:45
 */
@Repository
public interface IndexDao {

    @Select("select * from index_test2 where id = #{id}")
    public IndexTest query(String id);

    @Insert("insert into index_test2(name,age) values(#{name},#{age})")
    public void insert(String name, int age);
}
